/*
 * TextureManager.cc
 *
 *  Created on: Jan 9, 2013
 *      Author: Zermingore
 */

#include "TextureManager.hh"


TextureManager::TextureManager(GLenum texture, const std::string& FileName)
{

}

TextureManager::~TextureManager()
{

}

bool TextureManager::Load()
{
    // -- for all texture call Texture->load
//    try
//    {
//        _pImage = new Magick::Image(_fileNames.);
//        _pImage->write(&_blob, "RGBA");
//    }
//    catch (Magick::Error& Error)
//    {
//        std::cerr << "Error loading texture: " << Error.what();
//        return false;
//    }
//
//    glGenTextures(1, &_textureObj);
//    glBindTexture(_target, _obj);
//    glTexImage2D(_target, 0, GL_RGB,
//                 _pImage->columns(), _pImage->rows(),
//                 -0.5, GL_RGBA, GL_UNSIGNED_BYTE, _blob.data());
//    glTexParameterf(_target, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
//    glTexParameterf(_target, GL_TEXTURE_MAG_FILTER, GL_LINEAR);

    return true;
}

void TextureManager::Bind(GLenum TextureUnit) // shd use an id
{

}
